package com.plusone.model;

import javax.persistence.Entity;

@Entity
public class Contact extends Person {
	private String ipaddress;
	private String purpose;

	public void setIpaddress(String ipaddress) {
		this.ipaddress = ipaddress;
	}

	public String getIpaddress() {
		return ipaddress;
	}

	public void setPurpose(String purpose) {
		this.purpose = purpose;
	}

	public String getPurpose() {
		return purpose;
	}

	@Override
	public String toString() {
		StringBuilder data = new StringBuilder();
		data.append(this.getDisplayName());
		data.append("<hr/>");
		data.append(this.getPurpose());
		data.append("<hr/>");
		data.append(this.getEmailAddress());
		data.append("<hr/>");
		data.append(this.getPhoneNumber());
		data.append("<hr/>");
		data.append(this.getIpaddress());
		data.append("<hr/>");
		return data.toString();
	}
}
